﻿using Myotragus.Data;
using Myotragus.Data.Containers;
using Myotragus.Data.Domain;
using Myotragus.Data.Metadata;

namespace Myotragus.Store.Model.Tests.Domain
{
  [Entity("Object", IdColumn="ObjectId")]
  public interface ILocalizableObject : IEntity<int>
  {
    [Localizable]
    string Name { get; set; }
  }

  public interface ILocalizableObjectRepo : ILocalizableReadRepository<ILocalizableObject>
  {
    
  }

  public class LocalizableObjectRepo : Repository<ILocalizableObject>, ILocalizableObjectRepo
  {
    public LocalizableObjectRepo(IEntitiesContainer entities) : base(entities)
    {
    }
  }

  public interface IDefaultsLocalizableObjectRepo : IDefaultsLocalizableReadRepository<ILocalizableObject>
  {
      
  }

  public class DefaultsLocalizableObjectRepo : Repository<ILocalizableObject>, IDefaultsLocalizableObjectRepo
  {
    public DefaultsLocalizableObjectRepo(IEntitiesContainer entities) : base(entities)
    {
    }
  }
}